package com.enfo.zjabank.controller;

import com.enfo.zjabank.service.PrintService;
import com.enfo.zjabank.service.UploadService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;

@Controller
@RequestMapping("/print")
public class PrintController {

    @Autowired
    private PrintService printService;

    @RequestMapping("/createPrintPage/{busiType}/{custType}")
    public String print(HttpServletRequest request,@PathVariable String busiType,@PathVariable String custType){
        String url = printService.print(request,busiType,custType);
        return url;
    }
}